<include file="public/layout" />
<body style="background-color: #FFF; overflow: auto;">
<div id="toolTipLayer" style="position: absolute; z-index: 9999; display: none; visibility: visible; left: 95px; top: 573px;"></div>
<div id="append_parent"></div>
<div id="ajaxwaitid"></div>
<div class="page">
    <div class="fixed-bar">
        <div class="item-title"><a class="back" href="javascript:history.back();" title="返回列表"><i class="fa fa-arrow-circle-o-left"></i></a>
            <div class="subject">
                <h3>讨论管理 - 添加讨论</h3>
                <h5>网站系统讨论管理</h5>
            </div>
        </div>
    </div>
    <form class="form-horizontal" method="post" id="add_form">
        <div class="ncap-form-default">

            <dl class="row">
                <dt class="tit">
                    <label for="uid"><em>*</em>讨论发布人</label>
                </dt>
                <dd class="opt">
                    <select class="select" name="uid" id="uid" style="height:30px;">
                        <option value="">请选择发布人</option>
                        <volist name="users" id="name">
                        <option value="{$name.user_id}">{$name.nickname}</option>
                        </volist>
                    </select>
                    <span class="err"></span>
                    <p class="notic">发布人为必选项</p>
                </dd>
            </dl>
            <dl class="row">
                <dt class="tit">
                    <label for="password"><em>*</em>热门话题标题</label>
                </dt>
                <dd class="opt">
                    <input type="title" name="" id="" class="input-txt" value="{$dpsot.title}">
                    <span class="err"></span>
                    <p class="notic"></p>
                </dd>
            </dl>
            <dl class="row">
                <dt class="tit">
                    <label for="password"><em>*</em>热门话题内容</label>
                </dt>
                <dd class="opt">
                    <input type="title" name="" id="" class="input-txt" value="{$dpsot.content}">
                    <span class="err"></span>
                    <p class="notic"></p>
                </dd>
            </dl>
            <dl class="row">
                <dt class="tit">
                    <label for="content"><em>*</em>讨论内容</label>
                </dt>
                <dd class="opt">
                    <input type="text" name="content" id="content" class="input-txt">
                    <span class="err"></span>
                    <p class="notic">请输入你想要讨论的内容</p>
                </dd>
            </dl>
            <input type="hidden" name="pid" id="pid" class="input-txt" value="{$dpsot.id}">
            <div class="bot"><a href="JavaScript:void(0);" onclick="checkUserUpdate();" class="ncap-btn-big ncap-btn-green" id="submitBtn">确认提交</a></div>
        </div>
    </form>
</div>
<script type="text/javascript">
    function checkUserUpdate(){
        $('#add_form').submit();
    }
</script>
</body>
</html>